package com.hmy.finance.service.receipt.dto.offset;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * Manual Offset Data Transfer Object
 *
 * @author songkf
 */
@Data
public class ManualOffsetDto implements Serializable {

    private static final long serialVersionUID = -5188622429982113804L;

    /**
     * Customer ID
     */
    private Long customerId;

    /**
     * Receipt Offset Bill ID
     */
    private Long receiptOffsetBillId;

    /**
     * Contract Offset Detail List
     */
    private List<ContractOffsetDetail> contractOffsetDetailList;

    /**
     * submit User Id
     */
    private Long submitUserId;

    /**
     * Submit User Name
     */
    private String submitUserName;

    @Data
    public static class ContractOffsetDetail implements Serializable {

        private static final long serialVersionUID = 3194849346210211484L;

        /**
         * Contactor ID
         */
        private Long contactorId;

        /**
         * Contract ID
         */
        private Long contractId;

        /**
         * Offset Maximum Amount
         */
        private BigDecimal offsetMaximumAmount;

        /**
         * Contract Apportion Record ID
         */
        private Long contractApportionRecordId;
    }
}
